
package org.scalabletype.data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.OneToOne;
import javax.persistence.OneToMany;

@Entity
public class BlogEntry extends Entry implements Serializable {
	protected String blog;
	protected String name;
	protected String state;
	protected List<Tag> tags;

	public BlogEntry() {
		super();
		tags = new ArrayList<Tag>();
	}

	@OneToMany
	public List<Tag> getTags() {
		return tags;
	}

	public void setTags(List<Tag> tags) {
		this.tags = tags;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getBlog() {
		return blog;
	}

	public void setBlog(String blog) {
		this.blog = blog;
	}
}
